//
//  KATGifImage.h
//  KATFramework
//
//  Created by Kantice on 16/7/25.
//  Copyright © 2016年 KatApp. All rights reserved.
//  播放gif格式图片的视图
//  已停止更新，用KATImage代替


#import <ImageIO/ImageIO.h>
#import "KATSprite.h"
#import "KATArray.h"
#import "KATAppUtil.h"


@interface KATGifImage : KATSprite


#pragma -mark 属性

///帧数
@property(nonatomic,assign) unsigned long long frameCount;

///图片帧数组
@property(nonatomic,retain) KATArray<__kindof UIImage *> *frames;

///动画
@property(nonatomic,retain) CAAnimation *gifAnimation;

///动画时长
@property(nonatomic,assign) double gifDuration;


#pragma -mark 类方法

///通过文件路径获取实例
+ (instancetype)imageWithFile:(NSString *)file;

///获取实例
+ (instancetype)imageWithFile:(NSString *)file andSize:(CGSize)size;


#pragma -mark 对象方法

///播放
- (void)play;

///显示某一帧
- (void)displayWithFrame:(int)frame;


///释放内存
- (void)dealloc;


@end
